<template>
    <a-drawer width="100%" :body-style="{ paddingBottom: '80px', background: '#f0f2f5' }" :width="1000" :visible="isShow"
        placement="right" :get-container="false"  :style="{ position: 'absolute'}" :closable="false"
        :footer-style="{ textAlign: 'right' }">
        <a-card class="mb-2 text-center">
            <a-row :gutter="24">
                <a-col :span="20">
                    <!-- <div class=" mb-2 text-left font-semibold  text-lgflex flex-row"
                        style="font-weight: 600;font-size: 16px;">
                        {{info.name}}
                    
                    </div> -->
                    <div class="flex flex-row">
                        <div class="w-48 ">
                            <div class="mb-2">项目名称</div>
                            <div style="font-weight: 600;">{{info.proName}}</div>
                        </div>
                        <!-- <div class="w-64 ">
                            <div class="mb-2">申请变更总额（万元）</div>
                            <div style="font-weight: 600;">{{info.totalCost}}</div>
                        </div>
                        <div class="w-48 ">
                            <div class="mb-2">审批变更总额（万元）</div>
                            <div style="font-weight: 600;">{{info.totalCost}}</div>
                        </div> -->
                      
                        <div class="w-32   ">
                            <div class="mb-2">申请人</div>
                            <div style="font-weight: 600;">{{info.createUserName}}</div>
                        </div>
                        <div class="w-32  ">
                            <div class="mb-2">提审状态</div>
                            <div style="font-weight: 600;">{{info.stateText}}</div>
                        </div>
                        <div class="w-48">
                            <div class="mb-2">所属部门</div>
                            <div style="font-weight: 600;">{{info.orgName}}</div>
                        </div>
                    </div>
                </a-col>
                <a-col :span="4" class="text-right">
                    <a-button @click="isShow = false">返回</a-button>
                </a-col>
            </a-row>
        </a-card>
        <a-card class="mb-2">
            <a-tabs>
                <a-tab-pane key="1" tab="详细信息">

                    <edit  ref="editRef"  :disabled="true" ></edit>
                </a-tab-pane>
                <!-- <a-tab-pane key="2" tab="增补合同">

                    <supplementContract :id="id"></supplementContract>
                </a-tab-pane>
                <a-tab-pane key="3" tab="付款记录">
                    <ticketReceiptRecords :id="id"></ticketReceiptRecords>
                </a-tab-pane>
                <a-tab-pane key="4" tab="收票记录">
                    <paymentRecords :id="id"></paymentRecords>

                </a-tab-pane> -->
                <a-tab-pane key="5" tab="审核流程">
                    
                    <taskInfo :id="info.processId">
                    </taskInfo>
                </a-tab-pane>
            </a-tabs> </a-card>
    </a-drawer>
</template>
<script setup>
import taskInfo from '@/components/Task/info.vue'
// import edit from './edit.vue';
import edit from '@/views/flw/customform/contract/components/negotiations/edit.vue';
import supplementContract from './supplementContract.vue';
import paymentRecords from './paymentRecords.vue';
import ticketReceiptRecords from './ticketReceiptRecords.vue';

const editRef=ref()
const info=ref({})
const isShow = ref(false)
const show = (record) => {
    isShow.value = true
    editRef.value.show(record)
    info.value={...record}
}
defineExpose({
    show
});

</script>